<!-- author: lilonghe@outlook.com date: 2017/5/17 -->
<!DOCTYPE html>
<html>
<head>
    <title>教师管理后台</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css" href="/css/main.css">
</head>
<body>
<div class='teacher-container' id='app'>
    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="#">
                    名师到教师管理后台
                </a>
            </div>
            <ul class="nav navbar-nav">
                <li class="active"><a href="teacher-course.html">课程数据</a></li>
                <!-- <li><a href="#">账户安全</a></li> -->
            </ul>


            <ul class="nav navbar-nav navbar-right">
                <li><a href="/logout">退出</a></li>
            </ul>
        </div>
    </nav>
    <div class="form">
        <select v-model='period' id='period' class="form-control">
            <option v-for="option in periodOption" v-bind:value="option.value">
                ${ option.text }
            </option>
        </select>
        <select class="form-control">
            <option>学段</option>
            <option>小学</option>
            <option>初中</option>
            <option>高中</option>
            <option>家长</option>
        </select>
        <input type="text" name="" placeholder="学校" class="form-control">
        <select class="form-control">
            <option>年级</option>
            <option>一年级</option>
            <option>二年级</option>
            <option>三年级</option>
            <option>四年级</option>
            <option>五年级</option>
            <option>六年级</option>
            <option>七年级</option>
            <option>八年级</option>
            <option>九年级</option>
            <option>高一</option>
            <option>高二</option>
            <option>高三</option>
        </select>
        <input type="number" name="" placeholder="班级, 例：1" min="1" class="form-control">
        <input id='btn-search' type="button" name="" value='搜索' class='btn btn-primary'>

        <br/>
        <input id='sTime' type="date" name="" placeholder="年-月-日" class="form-control"><span class="time-center">至</span>
        <input id='eTime' type="date" name="" placeholder="年-月-日" class="form-control">

        <select class="pro form-control" v-model="pid" @change="prochange()" class="">
        <option value="0" selected>全部省</option>
        <option :value="v.id" v-for="v in pro">${v.name}</option>
        </select>
        <select class="city form-control" v-model="cid" @change="citychange()" class="form-control">
        <option value="0">全部市</option>
        <option :value="v.id" v-for="v in city">${v.name}</option>
        </select>
        <select class="county form-control" v-model="ccid" class="form-control">
            <option value="0">全部县</option>
            <option :value="v.id" v-for="v in county">${v.name}</option>
        </select>
    </div>

    <div class="content">
        <table class="table table-bordered">
            <thead>
            <tr>
                <th>序号</th>
                <th>课程名称</th>
                <th>浏览次数</th>
                <th>播放时长超过30%</th>
                <th>播放时长超过70%</th>
                <th>点播用户数</th>
                <th>点播用户分布地市数</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>qrq</td>
                <td>sdfsd</td>
                <td>sdfsdds</td>
                <td>sdfsdfds</td>
                <td>sdfsf</td>
                <td>sdfdsfsd</td>
                <td>sdfsf</td>
                <td><a href="/lesson">查看详情</a></td>
            </tr>

            <tr>
                <td>总计</td>
                <td>sdfsd</td>
                <td>sdfsdds</td>
                <td>sdfsdfds</td>
                <td>sdfsf</td>
                <td>sdfdsfsd</td>
                <td>sdfsf</td>
                <td></td>
            </tr>
            </tbody>
            <tfoot>
            <tr>
                <td colspan="8">
                    <nav aria-label="Page navigation">
                        <ul class="pagination">
                            <li v-on:click='goPage(pageNum-1)'>
                                <a aria-label="Previous">
                                    <span aria-hidden="true">上一页</span>
                                </a>
                            </li>

                            <li v-for='o in [pageNum-3,pageNum-2,pageNum-1]'
                                v-if='o>0'
                                v-on:click='goPage(o)'
                            ><a href="#" v-text='o'></a></li>

                            <li  class="active"><a v-text='pageNum'></a></li>

                            <li  class="disabled" v-if='pageTotal-1>pageNum'><a>...</a></li>
                            <li  v-on:click='goPage(pageTotal)' v-if='pageTotal>pageNum'><a href='#' v-text='pageTotal'></a></li>
                            <li  v-on:click='goPage(pageNum+1)'>
                                <a aria-label="Next">
                                    <span aria-hidden="true">下一页</span>
                                </a>
                            </li>
                        </ul>
                    </nav>
                </td>
            </tr>
            </tfoot>
        </table>
    </div>
</div>
</body>
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script src='moment.js'></script>
<script src='common.js'></script>
</html>

<script src='teacher.js' type="text/javascript"></script>
